package cn.springcloud.fix.auth.dao.mapper;

import cn.springcloud.fix.auth.dao.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色 Mapper 接口
 * </p>
 *
 * @author yangjun
 * @since 2019-12-02
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> selectRolesByUserId(Long userId);

    List<Role> selectRolesByMenuId(Long menuId);
}
